package cn.tedu.smartos.base.response;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    SUCCESS(2000, "操作成功"),
    FAILED(5000, "操作失败"),

    USER_EXIT(2100,"用户已存在"),
    USER_NOT_EXIT(2101,"用户不存在"),
    USERNAME_OR_PASSWORD_ERROR(2102,"用户名或密码错误"),
    UNAUTHORIZED(2103, "用户未登录或token已过期"),
    TOKEN_INVALID(2104,"token无效"),
    INVALID_REQUEST(2105,"非法请求"),

    NOT_ADMIN(2200,"不是管理员"),
    NO_PERMISSION(2201,"没有相关权限"),

    PARAM_MISSING(4000, "参数缺失"),
    STATUS_NOT_ACTIVE(4001, "账户已禁用");


    //状态码、状态码描述
    private Integer code;
    private String msg;
}